<div class="layui-input-inline">
    <a class="layui-btn model-a" href="{:url('Friend/adddepartment')}" data-title="添加驾驶员等级">添加部门</a>
</div>
<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Friend/department')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'department_name'}">部门名称</th>
        <th lay-data="{field:'company_address'}">地址</th>
        <th lay-data="{field:'company_name'}">所属单位</th>
        <th lay-data="{toolbar:'#info',width:180,}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="info">
    <a class="layui-btn layui-btn-danger layui-btn-xs  edit-table ajax-delete delete" data-title="删除" data-msg="确认删除？" href="{:url('Friend/deldepartment')}?department_id={{d.department_id}}">删除</a>
</script>


